<?php

	$q = $HTTP_SERVER_VARS["QUERY_STRING"];

	if ($q != NULL) {
	
		$info = explode(".", $q);

	}

if ($info) { // If everything's OK.

	require_once ('sql.php');	
	
		foreach ($info as $show) {
						
			$query = "UPDATE series SET broadcast='1', start=NOW() WHERE s_id='$show'";
			$result = @mysql_query ($query);

		}
	mysql_close(); // Close the database connection.
			
}

?>